package com.ruoyi.system.designpattern.wrapper;

/**
 * dvd播放器
 *
 * @author created by Zhou Zongbo on 2025/9/24.
 */
public class DvdPlayer {

    private String movie;

    public void on() {
        System.out.println("DVD播放器已开启");
    }

    public void off() {
        System.out.println("DVD播放器已关闭");
    }

    public void play(String movie) {
        this.movie = movie;
        System.out.println("正在播放电影: " + movie);
    }

    public void pause() {
        System.out.println(movie + " 已暂停");
    }

    public void stop() {
        System.out.println(movie + " 已停止");
    }

}
